<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminOrderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_order', function (Blueprint $table) {
            $table->increments('id');
            $table->string('order_sn')->comment('订单编号');
            $table->integer('user_id')->comment('用户id');
            $table->integer('order_status')->comment('订单状态');
            $table->integer('pay_status')->comment('支付状态');
            $table->string('pay_name')->comment('支付方式');
            $table->string('pay_price')->comment('支付金额');
            $table->integer('package_id')->comment('套餐类型');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_order');
    }
}
